import Cookie from "js-cookie";

const TOKENKEY = "carbon";

export function getToken() {
  return Cookie.get(TOKENKEY);
}

export function setToken(token, expires) {
  return Cookie.set(TOKENKEY, token, { expires });
}

export function removeToken() {
  return Cookie.remove(TOKENKEY);
}

export function getCookie(key) {
  return Cookie.get(key);
}

export function setCookie(key, value) {
  return Cookie.set(key, value);
}